<{include "public/header.html"}>
<div class="content">
	<{include "user/menu.html"}>
	<div class="fr huiyuan_main">
		<div class="hy_table" style="margin-top:0">
			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="hy_tb_tt">
			<tr>
				<td class="bg_f8" width="">商品详情</td>
				<td class="bg_f8" width="120">实付款(元)</td>
				<td class="bg_f8" width="120">交易操作</td>
				<td class="bg_f8" width="120" style="border-right:0;">订单详情</td>
			</tr>
			</table>
			<{foreach $info_list as $v }>
			<div class="hy_table_order c666">
				<span class="fl">订单编号：<{$v.id}></span>
				<span class="fr">下单时间：<{$v.atime|date_format:'%Y-%m-%d %H:%M'}></span>
				<div class="clear"></div>
			</div>
			<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #D4E7FF;">
			<tr>
				<td style="text-align:left;">
					<{foreach $v.product_list as $kk => $vv }>
					<div class="dingdan_list" <{if $kk eq 0 }>style="padding-top:0"<{/if}>>
						<a href="<{$app}>?m=product&a=index&id=<{$vv.pid}>" class="fl mar5"><img src="<{thumb($vv.plogo, 60, 60)}>" width="45" height="45"></a>
						<div class="fl font12">
							<a href="<{$app}>?m=product&a=index&id=<{$vv.pid}>" title="<{$vv.pname}>" target="_blank" class="cblue dd_name"><{$vv.pname}></a>
							</div>
							<span class="fr font12"><span class="num">￥<{$vv.pmoney}></span>(×<{$vv.pnum}>)</span>
						<div class="clear"></div>
					</div>
					<{/foreach}>
				</td>
				<td width="100">
					<p class="cred num font14 strong"><{$v.order_money}></p>
					<p class="c888 font12"><{if $v.wlmoney eq 0 }>(卖家包邮)<{else}>(含运费<{$v.wlmoney}>元)<{/if}></p>
				</td>
				<td width="100">
				<!--货到付款-->
				<{if $v.payway eq 3 }>
					<{if $v.state eq 1 }>
					<p class="cgreen font13">订单创建成功</p>
					<p class="cred font13">等待卖家发货</p>
					<{elseif $v.state eq 3 }>
					<p class="cgreen font13">卖家已经发货</p>
					<p class="cred font13">等待买家付款</p>
					<{elseif $v.state eq 4 }>
					<p class="cgreen font13">交易成功</p>
					<{/if}>
				<!--先款后货-->
				<{else}>
					<{if $v.state eq 1 }>
					<p class="cgreen font13">订单创建成功</p>
					<p class="cred font13">等待买家付款</p>
					<{elseif $v.state eq 2 }>
					<p class="cgreen font13">买家付款成功</p>
					<p class="cred font13">等待卖家发货</p>
					<{elseif $v.state eq 3 }>
					<p class="cgreen font13">卖家已经发货</p>
					<p><a class="shouhuo_btn" href="https://lab.alipay.com/consume/queryTradeDetail.htm?tradeNo=" target="_blank">去确认收货</a></p>
					<{elseif $v.state eq 4 }>
					<p class="cgreen font13">交易成功</p>
					<{/if}>
				<{/if}>
				<p class="c888 font12 mat3"><{$paywayarr[$v.payway]}></p>
				</td>
				<td width="100">
					<a href="<{$app}>?m=user&a=orderview&id=<{$v.id}>" target="_blank" class="font13">订单详情</a>
					<{if $v.state eq 1 }>
					<p class="mat3"><a href="<{$app}>?m=user&a=orderdel&id=<{$v.id}>" onclick="return confirm('确定要删除订单')" class="cblue font12">删除订单</a></p>
					<{/if}>
				</td>
			</tr>
			</table>
			<{/foreach}>
			<div class="hy_pay">
				<{$fpage}>
			</div>
		</div>
	</div>
	<div class="clear"></div>
</div>

<{include "public/footer.html"}>
